<include file="template:style"/>
<form role="form" id="searchForm" action="{:U('Order/index')}" method='post' class="form-horizontal">
    <div class="form-group">
		<include file="template:search" results="params" name="no" label="订单号" attr='data-rule="length(~20)" maxlength="20"'/>
		<include file="template:search" results="params" name="name" label="名字" attr='data-rule="length(~20)" maxlength="20"'/>
		<include file="template:search" results="params" name="phone" label="电话" attr='data-rule="length(~20)" maxlength="20"'/>
		<include file="template:search" results="params" name="logistics" label="物流单号" attr='data-rule="length(~255)" maxlength="255"'/>
		<include file="template:search" results="params" name="logisticscom" label="物流公司" attr='data-rule="length(~255)" maxlength="255"'/>
		<include file="template:select" results="params" name="pageSize" list="page" label="每页条数" />
        <div class="col-xs-12">
			<!--<div class="col-xs-4 col-sm-3 col-md-2 col-lg-1 pull-left">
                <div class="row">
                    <include file="template:addBtn" url="{:U('Order/add')}" height="650px" width="550px"/>
                </div>
            </div>-->
			<div class="col-xs-4 col-sm-3 col-md-2 col-lg-1">
                <div class="row">
					<span></span>
				</div>
            </div>
            <div class="col-xs-4 col-sm-3 col-md-2 col-lg-1 pull-right">
                <div class="row">
                    <include file="template:searchBtn"/>
                    <include file="template:reloadBtn"/>
                </div>
            </div>
        </div>
    </div>
</form>
<div class="table-responsive">
    <table class="table table-bordered">
        <thead>
        <tr>
            <th nowrap="nowrap"></th>
            <th nowrap="nowrap">用户</th>
            <th nowrap="nowrap">订单号</th>
            <th nowrap="nowrap">订单状态</th>
            <th nowrap="nowrap">总金额</th>
            <th nowrap="nowrap">数量</th>
            <!--<th nowrap="nowrap">邮政编码</th>-->
            <th nowrap="nowrap">名字</th>
            <th nowrap="nowrap">电话</th>
            <!--<th nowrap="nowrap">地区ID</th>-->
            <th nowrap="nowrap">地区</th>
            <th nowrap="nowrap">详细地址</th>
            <th nowrap="nowrap">物流单号</th>
            <th nowrap="nowrap">物流公司</th>
            <th nowrap="nowrap">创建时间</th>
            <th nowrap="nowrap">更新时间</th>
            <th nowrap="nowrap">操作</th>
        </tr>
        </thead>
        <tbody>
        <volist name="list" id="vo">
            <tr>
				<td nowrap="nowrap">{$vo.id}</td>
				<td nowrap="nowrap">{$vo.memberid}</td>
				<td nowrap="nowrap">{$vo.no}</td>
				<td nowrap="nowrap">{$vo.status}</td>
				<td nowrap="nowrap">{$vo.total}</td>
				<td nowrap="nowrap">{$vo.num}</td>
				<!--<td nowrap="nowrap">{$vo.zipcode}</td>-->
				<td nowrap="nowrap">{$vo.name}</td>
				<td nowrap="nowrap">{$vo.phone}</td>
				<!--<td nowrap="nowrap">{$vo.regionid}</td>-->
				<td nowrap="nowrap">{$vo.region}</td>
				<td nowrap="nowrap">{$vo.address}</td>
				<td nowrap="nowrap">{$vo.logistics}</td>
				<td nowrap="nowrap">{$vo.logisticscom}</td>
				<td nowrap="nowrap">{$vo.createtime}</td>
				<td nowrap="nowrap">{$vo.updatetime}</td>
                <td nowrap="nowrap">
                    <if condition="($vo.status == 8)">
                        <i class="fa fa-check qg-tooltip qg-op-btn" data-toggle="tooltip" data-placement="top" title="通过" onclick="confirmUpdate('{:U(\'Order/confirm\')}','{$vo.id}','确定要通过退货审请吗？')"></i>
                        <i class="fa fa-times-circle qg-tooltip qg-op-btn" data-toggle="tooltip" data-placement="top" title="驳回" onclick="confirmUpdate('{:U(\'Order/reject\')}','{$vo.id}','确定要驳回退货申请吗？')"></i>
                    </if>
                    <!--详情-->
                    <i class="fa fa-file-text-o qg-op-btn qg-tooltip" data-toggle="tooltip" data-placement="top" title="查看详细" onclick="modal('{:U(\'Order/info\', array(\'id\'=>$vo[\'id\']))}', '详细信息','90%','700px')"></i>
                    <!--收货地址-->
                    <i class="fa fa-share-alt qg-op-btn qg-tooltip" data-toggle="tooltip" data-placement="top" title="收货信息" onclick="modal('{:U(\'Order/receiptedit\', array(\'id\'=>$vo[\'id\']))}', '收货信息','500px','600px')"></i>
                    <if condition="$vo.status eq 2">
                        <i class="fa fa-send-o qg-op-btn qg-tooltip" data-toggle="tooltip" data-placement="top" title="发货" onclick="modal('{:U(\'Agenorder/send\', array(\'id\'=>$vo[\'id\']))}','发货')"></i>
                    </if>
                    <if condition="($vo.status == 3) || ($vo.status == 4)">
                        <!--物流信息-->
                        <i class="fa fa-asterisk qg-op-btn qg-tooltip" data-toggle="tooltip" data-placement="top" title="修改物流信息" onclick="modal('{:U(\'Order/change_logistics\', array(\'id\'=>$vo[\'id\']))}', '物流信息','650px','400px')"></i>
                        <i class="fa fa-truck qg-op-btn qg-tooltip" data-toggle="tooltip" data-placement="top" title="物流信息" onclick="modal('{:U(\'Order/logistics\', array(\'id\'=>$vo[\'id\']))}', '物流信息','650px','400px')"></i>
                    </if>
                    <i class="fa fa-trash-o qg-tooltip qg-op-btn" data-toggle="tooltip" data-placement="top" title="删除" onclick="confirmUpdate('{:U(\'Order/delete\')}','{$vo.id}','确定要删除吗？')"></i>
                </td>
            </tr>
        </volist>
        </tbody>
    </table>
</div>
{$page}